package edu.sctu.practice.class02.qiuyangyang.text04;

/**
 * Created by Administrator on 2015/10/10 0010.
 */
public class Number {
    private int n1;
    private int n2;

    public Number(int n1, int n2) {
        this.n1 = 8;
        this.n2 = 8;
    }

    public int addition() {
        return n1 + n2;
    }

    public int subtration() {
        return n1 - n2;
    }

    public int multiplication() {
        return n1 * n2;
    }

    public int division() {
        return n1 / n2;
    }

    public static void main(String[] args) {

        Number run = new Number(8, 8);
        
        System.out.println("n1+n2为:" + run.addition());

        System.out.println("n1-n2为:" + run.subtration());

        System.out.println("n1*n2为:" + run.multiplication());

        System.out.println("n1/n2为:" + run.division());
    }
}
